package com.yang.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 车辆表
 * @TableName car
 */
@TableName(value ="car")
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "Car", description = "车辆模型")
public class Car implements Serializable {
    /**
     * 车牌号
     */
    @TableId
    @ApiModelProperty(value = "车牌号")
    private String card;

    /**
     * 车辆类型
     */
    @ApiModelProperty(value = "车辆类型")
    private String types;

    /**
     * 车辆品牌
     */
    @ApiModelProperty(value = "车辆品牌")
    private String brand;

    /**
     * 创建者编号
     */
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建者编号")
    private Integer createBy;

    /**
     * 车辆登记时间
     */
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "车辆登记时间")
    private LocalDateTime createTime;

    /**
     * 更新者编号
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "更新者编号")
    private Integer updateBy;

    /**
     * 车辆更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "车辆更新时间")
    private LocalDateTime updateTime;

    /**
     * 逻辑删除列
     */
    @ApiModelProperty(value = "逻辑删除列")
    private Integer delFlag;

    @ApiModelProperty(value = "关联用户")
    @TableField(exist = false)
    private List<User> userList;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}